package com.wistech.search.solr.dict;

public interface DictDetector {

	int DEFAULT_TERM_MIN_LENGTH = 2;
	int DEFAULT_TERM_MAX_LENGTH = 8;
	int MINUTE = 60 * 1000;
	int HOUR = 60 * MINUTE;
	int DAY = 24 * HOUR;

	/**
	 * @param minLength
	 *            the minLength to set
	 */
	void setMinLength(int minLength);

	/**
	 * @param maxLength
	 *            the maxLength to set
	 */
	void setMaxLength(int maxLength);

	/**
	 * @param refreshMode
	 *            the refreshMode to set
	 */
	void setRefreshMode(RefreshMode refreshMode);

	void start();

	void stop();

	void loadDict();

	enum RefreshMode {
		DAY, HOUR;
	}

}